from poker_bot.core.models.dto import DiscountDTO
from poker_bot.database.models import Discount


def convert_db_model_to_discount_dto(discount: Discount) -> DiscountDTO:
    return DiscountDTO(
        id=discount.id,
        title=discount.title,
        text=discount.text,
    )
